package com.cakebackoffice.clientsoap.contract;

import org.ksoap2.serialization.SoapObject;

public class DeliveryMan extends ContractObject {
    public int id;
    public String name;
    public String firstname;
    public boolean isMale;

    @Override
    public void fill(SoapObject soapObject) {
        id = Integer.parseInt(soapObject.getProperty("id").toString());
        name = soapObject.getProperty("name").toString();
        firstname = soapObject.getProperty("firstname").toString();
        isMale = Boolean.parseBoolean(soapObject.getProperty("id").toString());
    }
}
